body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: url("../../shared/images2/9.jpg") no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* ── Contenedor principal de Login ── */
.login-page-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 2rem;
    box-sizing: border-box;
}

/* ── Tarjeta Liquid Glass ── */
.login-card {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 2rem;
    box-sizing: border-box;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Para la alerta flotante */
}

.login-card:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* ── Logo y Título ── */
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-ormon {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.05));
}

.title-ormon {
    font-size: 1.8rem;
    font-weight: 300;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.title-ormon strong {
    font-weight: 500;
}

/* ── Alertas (Flotantes tipo Toast en la parte superior de la pantalla) ── */
.login-alert-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    width: 90%;
    max-width: 550px;
    /* Aumentado para que quepan mejor los textos */
    box-sizing: border-box;
}

.login-alert-content {
    pointer-events: auto;
    animation: slideDownFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
}

/* Liquid glass + buen contraste para #error dentro de la alerta de login */
.login-alert-content #error {
    background: rgba(255, 248, 248, 0.5) !important;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    color: #b71c1c !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.login-alert-content #error .material-symbols-outlined {
    color: #c62828 !important;
}

/* Liquid glass + buen contraste para #aviso dentro de la alerta de login (azul, menos transparente) */
.login-alert-content #aviso {
    background: rgba(33, 150, 243, 0.18) !important;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    color: #1565c0 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.login-alert-content #aviso .material-symbols-outlined {
    color: #1976d2 !important;
}

/* Liquid glass + buen contraste para #ok dentro de la alerta de login */
.login-alert-content #ok {
    background: rgba(232, 245, 233, 0.5) !important;
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    color: #2e7d32 !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}
.login-alert-content #ok .material-symbols-outlined {
    color: #388e3c !important;
}

/* Sobreescribir los boxes de error para que sean más minimalistas y elegantes */
#error,
#aviso,
#ok {
    margin: 0 !important;
    width: auto !important;
    min-width: 300px;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px !important;
    padding: 12px 24px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Formulario ── */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.4rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding-left: 4px;
}

.custom-input {
    width: 100%;
    height: 2.6rem !important;
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    padding: 0 0.85rem !important;
    font-size: 0.95rem !important;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    box-sizing: border-box;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.95) !important;
    outline: none !important;
    border-color: rgba(139, 29, 29, 0.2) !important;
    box-shadow:
        0 0 0 3px rgba(139, 29, 29, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

/* ── Acciones ── */
.login-actions {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
}

.btn-login-submit {
    background: var(--primary-color, #8B1D1D);
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(139, 29, 29, 0.2);
}

.btn-login-submit:hover {
    background: #a32222;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(139, 29, 29, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0) scale(0.98);
}

.btn-login-submit img {
    width: 1.8rem;
    height: 1.8rem;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.btn-login-submit:hover img {
    transform: translateX(4px);
}

/* ── Footer ── */
.footer-login-div {
    margin-top: 1.5rem;
}

.footer-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-footer {
    width: 40px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.logo-footer:hover {
    opacity: 1;
}

.text-footer {
    font-size: 0.7rem;
    color: rgba(0, 0, 0, 0.4);
    font-weight: 500;
}

/* ── Animaciones ── */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .login-page-wrapper {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem;
        border-radius: 22px;
    }

    .title-ormon {
        font-size: 1.8rem;
    }
}